<template>
  <h1>Line Simple 基础折线图</h1>
  <div id="haha" style="width: 100%;height:400px"></div>
</template>

<script setup>
import * as echarts from 'echarts';
import {onMounted} from "vue";

onMounted(() => {
  var chartDom = document.getElementById('haha');
  var myChart = echarts.init(chartDom);
  var option;

  option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
      type: 'value'
    },
    series: [
      {
        data: [150, 230, 224, 218, 135, 147, 260],
        type: 'line'
      }
    ]
  };

  myChart.setOption(option);
});


</script>

<style scoped>

</style>